jQuery [attribute|=value] Selector
jQuery [attribute|=value] Selector
The [attribute|=value] selector is used to select all elements with a specified attribute but with a value equal to a specified string or starting with that string. It is often used to handle language attributes.
Syntax:-
Its syntax is:- $("[attribute|='value']");
Further Explanation:-
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the string the attribute value should start with |